﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.ArticleViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Model.Article.Title %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="leftside">
        <h2>
            Flokkar</h2>
        <ul>
            <% foreach (var k in Model.Keywords)
               { %>
            <li>
                <%: Html.ActionLink(k.Title, "ListOfArticlesByKeyword", "Home", new { k.ID }, null)%></li>
            <% } %>
        </ul>
    </div>
    <div id="article">
        <h2>
            <%: Model.Article.Title %></h2>
        <h4 id="articletype">
            Þessi grein er undir flokknum <span id="underl">
                <%: Model.MenuItem %>
            </span>
        </h4>
        <div id="articlebody">
            <%= System.Web.HttpUtility.HtmlDecode(Model.Article.TextBody) %>
        </div>
        <div id="hofundur">
            Þessi grein er eftir "
            <%: Model.Article.aspnet_User.UserName %>
            "
        </div>
        <div id="ilikeit">
            <div id="fb-root">
            </div>
            <p>
                <iframe src="http://www.facebook.com/plugins/like.php?href=Brjostagjof/Article/Article/<%:Model.Article.ID %>&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&locale=is_IS&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80"
                    scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 450px;
                    height: 80px;" allowtransparency="true"></iframe>
            </p>
            <!--<div id="fcomments">
                <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
                <fb:comments href="www.brjostagjof.is/Article/Article/<%:Model.Article.ID %>" num_posts="2"
                    width="500"></fb:comments>
            </div> -->
        </div>
    </div>
</asp:Content>